package xj.app;

import javax.swing.*;

public class DockingPanel extends JPanel {

  public DockingPanel() {
    this(false); 
  }

  public DockingPanel(boolean vertical) {
    if (vertical) { 
      setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
    } else { 
      setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
    }
  }

}
